home *** CD-ROM | disk | FTP | other *** search
/ MacFormat UK 76 / MF_UK_76_1.iso / Education Feature / MicroWorlds 2.03 Try Me / MicroWorlds 2.03 Try Me.rsrc / TEXT_4001_Out of recursion space.txt < prev    next >
Encoding:
Text File  |  1998-05-08  |  583 b   |  13 lines

  1. The portion of memory used to run recursive procedures has been entirely used. Check if your procedure has many instructions following the recursive line. Following is an example of a procedure that would generate this message. The third line is a recursive call. The procedure calls itself. At each recursive call, MicroWorlds remembers that it still has two more instructions to run. These instructions add up and grow bigger than the area of computer memory allocated for this kind of information.
  2.  
  3. Example:
  4.  
  5. to spi-and-unspi :n
  6. fd :n
  7. rt 90
  8. spi-and-unspi :n + 5
  9. fd :n
  10. lt 90
  11. end 
  12.  
  13.